package com.caoji.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caoji.item.entity.Category;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description： User: caoji
 * Date: 2020/12/4
 * Time: 11:35
 */
public interface CategoryMapper extends BaseMapper<Category> {

    @Select("SELECT tcb.category_id FROM heima.tb_category_brand tcb where tcb.brand_id=#{id}")
    List<Long> findbybandis(@Param("id") Long id);
}
